{extend name="ace/layout/master/detail" /}

{block name="title"}帮助中心管理{/block}
{block name="page-title"}帮助中心{/block}

{block name="content"}
    <input name="help_id" class="form-control" type="hidden" value="{if $detail}{$detail->help_id}{/if}" />
    <div class="form-group">
        <label class="col-sm-2 control-label no-padding-right"> 帮助中心标题：</label>
        <div class="col-sm-10">
            <input type="text" name="help_title" placeholder="输入帮助中心标题" class="col-xs-10 col-sm-5" required="" value="{if $detail}{$detail->help_title}{/if}" />
            <span class="lbl col-xs-12 col-sm-7">
                <i class="icon-info-sign"></i> 唯一标识
            </span>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-2 control-label no-padding-right"> 内容：</label>
        <div class="col-sm-9">
            <!-- 加载编辑器的容器 -->
            <script id="ue-container" name="help_content" type="text/plain">{if $detail}{:html_entity_decode($detail->help_content)}{/if}</script>
        </div>
    </div>
{/block}

{block name="script"}
{include file="ace/layout:ueditor" /}
<script type="text/javascript">
    window.onload = function () {
        closeLayerLoading(closeAllLayer);
        uediotr();
    }
</script>
{/block}